package com.zjut.multithreading;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.zjut.multithreading.dao")
@EnableEurekaClient //自动在服务启动后注册到euraka中
@EnableDiscoveryClient //服务发现
@ImportResource(locations = {"classpath:scheduled-task.xml"})   //引入定时任务xml配置文件
public class MultithreadingProvider_8001 {
    public static void main(String[] args) {
        SpringApplication.run(MultithreadingProvider_8001.class,args);
    }
}
